package lol.oxguy3.android.mcmc;

import java.util.ArrayList;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;

public class MinecraftServerAdapter extends BaseAdapter {
	private ArrayList<MinecraftServer> list;
	private Context cxt;

	public MinecraftServerAdapter(ArrayList l, Context c) {
		list = l;
		cxt = c;
	}

	public int getCount() {
		return list.size(); // or do you want one list item per name?
		// if so, just count out all the map entries in each item of the list
	}

	public int getItemId(int position) {
		return position; // doesn't matter too much...
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		LayoutInflater.from(cxt).inflate(resource, parent, false)
		// populate the view here...
		// use LayoutInflater.from(context).inflate(resource, parent, false) to inflate new views
	}

	public Object getItem(int position) {
		// TODO Auto-generated method stub
		return list.get(position);
	}
}